package com.zqs.mapper;

import com.zqs.entity.BaseEntity;
import com.zqs.entity.Hire;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HireMapper {

    @Insert("insert into t_hire(uid,pid,name,phone,day,money,created_user,created_time,modified_user,modified_time) " +
            "values(#{uid},#{pid},#{name},#{phone},#{day},#{money},#{createdUser},#{createdTime},#{modifiedUser},#{modifiedTime})")
    Integer addHire(Hire hire);


    @Select("select * from t_hire where uid = #{uid}")
    List<Hire> getHireByUid(Integer uid);
}
